package apresentacao.formularios;

import java.awt.Image;
import java.awt.Toolkit;

import javax.swing.ImageIcon;

public class UtilForms {

	public static Image FORMS_ICON = Toolkit.getDefaultToolkit().getImage("images/piggy-bank-icon.png");
	
	public static ImageIcon createIcon(String path) {
		
		Image image = Toolkit.getDefaultToolkit().getImage(path);		
		Image newimg = image.getScaledInstance( 100, 100,  java.awt.Image.SCALE_SMOOTH ) ;
		return new ImageIcon(newimg);
		
	}
}
